package com.ztgf.sys.models.service;

import com.baomidou.mybatisplus.service.IService;
import com.ztgf.sys.models.bo.SysAreaSaveBO;
import com.ztgf.sys.models.dto.SysAreaDTO;
import com.ztgf.sys.models.vo.SysAreaVO;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

/**
 * <p>
 * 区域  服务类
 * </p>
 *
 * @author YUE
 * @since 2020-05-25
 */
public interface ISysAreaService extends IService<SysAreaDTO> {
    boolean add(SysAreaSaveBO sysAreaSaveBO);
    List<SysAreaDTO> getInfoByCityId(Long id);
    //@Cacheable(cacheNames = "getAreaTree")
    List<SysAreaVO> getAreaTree();
    //@CacheEvict(cacheNames = "getAreaTree", allEntries = true)
    //void clear();
    StringBuffer getParentArea(Long id,StringBuffer stringBuffer);
    List<SysAreaDTO> getAllProvince();
    SysAreaDTO getAreaStair(Long id);
    List<String> selectAreaNameBatchIds(List<String> ids);
    List<SysAreaVO> queryAreaTreeInCityStopList();
}
